# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         test44
# Description:  元组学习
# Author:       $赵怡蕾
# Date:         2019/1/18
#-------------------------------------------------------------------------------

t = (1,2)
t0 = ()
t1 = (100,)               # 加","是表示一个元素的元组
print(t[0])               # 运行结果：1

tt =(11,[1,2,3,4])
print(tt[1])              # 运行结果：[1, 2, 3, 4]
print(tt)                 # 运行结果：(11, [1, 2, 3, 4])
tt[1][2] = 22
print('修改后',tt)        # 运行结果：修改后 (11, [1, 2, 22, 4])
